/**
 * Copyright By Nanjing Fujitsu Nanda Software Technology Co., Ltd
 * 下午2:15:00
 * UserModel.java
 * 
 */
package com.fujitsu.nanjing.mobile.model;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

import java.util.Hashtable;

/**
 * @author qixb.fnst
 * 
 */
public class UserModel implements KvmSerializable {

    private String photo;

    private String userId;

    private String idCard;

    private String realName;

    @Override
    public String toString() {
        return "UserModel [photo=" + photo + ", userId=" + userId + ", idCard="
                + idCard + ", realName=" + realName + ", bigNumber="
                + bigNumber + ", smallNumber=" + smallNumber + ", placeName="
                + placeName + "]";
    }

    private String bigNumber;

    private String smallNumber;

    private String placeName;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getBigNumber() {
        return bigNumber;
    }

    public void setBigNumber(String bigNumber) {
        this.bigNumber = bigNumber;
    }

    public String getSmallNumber() {
        return smallNumber;
    }

    public void setSmallNumber(String smallNumber) {
        this.smallNumber = smallNumber;
    }

    public String getPlaceName() {
        return placeName;
    }

    public void setPlaceName(String placeName) {
        this.placeName = placeName;
    }

    @Override
    public Object getProperty(int arg0) {
        switch (arg0) {
        case 0:
            return this.photo;
        case 1:
            return this.userId;
        case 2:
            return this.idCard;
        case 3:
            return this.realName;
        case 4:
            return this.bigNumber;
        case 5:
            return this.smallNumber;
        case 6:
            return this.placeName;

        default:
            break;
        }
        return null;
    }

    @Override
    public int getPropertyCount() {
        return 7;
    }

    @SuppressWarnings("rawtypes")
    @Override
    public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
        switch (arg0) {
        case 0:
            arg2.name = "photo";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 1:
            arg2.name = "userId";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 2:
            arg2.name = "idCard";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 3:
            arg2.name = "realName";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 4:
            arg2.name = "bigNumber";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 5:
            arg2.name = "smallNumber";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 6:
            arg2.name = "placeName";
            arg2.type = PropertyInfo.STRING_CLASS;
        default:
            break;
        }

    }

    @Override
    public void setProperty(int arg0, Object arg1) {
        switch (arg0) {
        case 0:
            photo = arg1.toString();
        case 1:
            userId = arg1.toString();
        case 2:
            idCard = arg1.toString();
        case 3:
            realName = arg1.toString();
        case 4:
            bigNumber = arg1.toString();
        case 5:
            smallNumber = arg1.toString();
        case 6:
            placeName = arg1.toString();
        default:
            break;
        }

    }

    /**
     * @return the photo
     */
    public String getPhoto() {
        return photo;
    }

    /**
     * @param photo
     *            the photo to set
     */
    public void setPhoto(String photo) {
        this.photo = photo;
    }
}
